# Copyright (c) 2021 Stephanos Ioannidis <root@stephanos.io>
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(
  arm_mat_add_f32.c
  arm_mat_add_q15.c
  arm_mat_add_q31.c
  arm_mat_cholesky_f32.c
  arm_mat_cholesky_f64.c
  arm_mat_cmplx_mult_f32.c
  arm_mat_cmplx_mult_q15.c
  arm_mat_cmplx_mult_q31.c
  arm_mat_cmplx_trans_f32.c
  arm_mat_cmplx_trans_q15.c
  arm_mat_cmplx_trans_q31.c
  arm_mat_init_f32.c
  arm_mat_init_q15.c
  arm_mat_init_q31.c
  arm_mat_inverse_f32.c
  arm_mat_inverse_f64.c
  arm_mat_ldlt_f32.c
  arm_mat_ldlt_f64.c
  arm_mat_mult_f32.c
  arm_mat_mult_f64.c
  arm_mat_mult_fast_q15.c
  arm_mat_mult_fast_q31.c
  arm_mat_mult_q7.c
  arm_mat_mult_q15.c
  arm_mat_mult_q31.c
  arm_mat_scale_f32.c
  arm_mat_scale_q15.c
  arm_mat_scale_q31.c
  arm_mat_solve_lower_triangular_f32.c
  arm_mat_solve_lower_triangular_f64.c
  arm_mat_solve_upper_triangular_f32.c
  arm_mat_solve_upper_triangular_f64.c
  arm_mat_sub_f32.c
  arm_mat_sub_f64.c
  arm_mat_sub_q15.c
  arm_mat_sub_q31.c
  arm_mat_trans_f32.c
  arm_mat_trans_f64.c
  arm_mat_trans_q7.c
  arm_mat_trans_q15.c
  arm_mat_trans_q31.c
  arm_mat_vec_mult_f32.c
  arm_mat_vec_mult_q7.c
  arm_mat_vec_mult_q15.c
  arm_mat_vec_mult_q31.c
  )

zephyr_library_sources_ifdef(CONFIG_CMSIS_DSP_FLOAT16
  arm_mat_add_f16.c
  arm_mat_cholesky_f16.c
  arm_mat_cmplx_mult_f16.c
  arm_mat_cmplx_trans_f16.c
  arm_mat_init_f16.c
  arm_mat_inverse_f16.c
  arm_mat_mult_f16.c
  arm_mat_scale_f16.c
  arm_mat_solve_lower_triangular_f16.c
  arm_mat_solve_upper_triangular_f16.c
  arm_mat_sub_f16.c
  arm_mat_trans_f16.c
  arm_mat_vec_mult_f16.c
  )
